/**
 *
 */
export default class HttpAPIUtil{
    public static async getRefreshToken(token){
        cc.gg.httpUtil.setUserToken(token)
        let result = await cc.gg.httpUtil.httpGet('/user/token/refresh',{channel:cc.gg.gameDataUtil.getPakageChannel()})
        if(!result.succ){
            return null
        }else {
            //let uid = ...
            // let newToken = result.data.token
            return result.data
        }
    }
}
